<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>管理员首页</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 20px;
            background-color: #f5f5f5;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            background-color: white;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }
        h1 {
            color: #333;
            margin: 0;
        }
        .nav-right {
            display: flex;
            align-items: center;
        }
        .welcome-text {
            margin-right: 15px;
            color: #666;
        }
        .logout-btn {
            background-color: #dc3545;
            color: white;
            padding: 8px 15px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            text-decoration: none;
        }
        .logout-btn:hover {
            background-color: #c82333;
        }
        .menu-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }
        .menu-item {
            background-color: #f8f9fa;
            padding: 20px;
            border-radius: 5px;
            text-align: center;
            text-decoration: none;
            color: #333;
            transition: transform 0.2s;
        }
        .menu-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        .menu-item h2 {
            margin: 0;
            color: #4CAF50;
        }
        .menu-item p {
            margin: 10px 0 0;
            color: #666;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>管理员控制面板</h1>
            <div class="nav-right">
                <span class="welcome-text">欢迎，${sessionScope.user.username}</span>
                <a href="${pageContext.request.contextPath}/user/logout" class="logout-btn">退出登录</a>
            </div>
        </div>
        
        <div class="menu-grid">
            <a href="${pageContext.request.contextPath}/venue/list" class="menu-item">
                <h2>场馆管理</h2>
                <p>管理场馆信息、状态和预约情况</p>
            </a>
            <a href="${pageContext.request.contextPath}/reservation/list" class="menu-item">
                <h2>预约管理</h2>
                <p>查看和处理场馆预约申请</p>
            </a>
            <a href="#" class="menu-item">
                <h2>用户管理</h2>
                <p>管理用户账号和权限</p>
            </a>
            <a href="#" class="menu-item">
                <h2>系统设置</h2>
                <p>配置系统参数和基本设置</p>
            </a>
        </div>
    </div>
</body>
</html> 